using System;
using System.Collections.Generic;
using System.Text;

namespace GHMC
{
    public class User
    {
        public int jobId;
        public string jobDes;
        public string jobState;
        public int jobSt;

        public User(int jobIdIn, string jobDesIn, string jobStateIn)
        {
            jobId = jobIdIn;
            jobDes = jobDesIn;
            jobState = jobStateIn;

            if (jobState == "Completed")
            {
                jobSt = 3;
            }
            else if (jobState == "Incomplete")
            {
                jobSt = 1;
            }
            else if (jobState == "Suspended")
            {
                jobSt = 2;
            }
            else if (jobState == "Failed")
            {
                jobSt = 4;
            }
        }
    }
}
